package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IConfig
import fhp.hlhj.giantfold.javaBean.ConfigBean
import fhp.hlhj.giantfold.module.ConfigModule

/**
 * Created by Administrator on 2018\2\27 0027.
 */
class ConfigPresenter(private val iConfig: IConfig) : ConfigModule.OnConfigListener {
    private val module=ConfigModule()

    fun getConfig(params:HttpParams){
        module.getConfig(params,this)
    }

    override fun showLoading() {
    }

    override fun onResp(t: ConfigBean) {
        iConfig.onResp(t)
    }
}